package com.atguigu.yygh.user.client;

import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zr
 * @date 2021/12/21 17:06
 */
@FeignClient("service-user")
@Repository
public interface PatientFeignClient {
    /**
     * 根据就诊人id 获取就诊人信息 远程调用接口
     *
     * @param id
     * @return
     */
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatientOrder(@PathVariable("id") Long id);
}
